<?php
/**
 * Creates a connection to the database
 *
 * This file instantiates the database class as $db and creates
 * a connection to the database.
 * 
 * The $link variable is currently retained until all existing
 * code relying on it can be upgraded to use the class instead.
 *
 * @copyright  2009 A Memory Tree
 * @link       http://amemorytree.co.nz/connect.php
*/
require_once 'Db.php';
/*.Db.*/ $db = new Db();
/*.resource.*/ $link = $db->connect('localhost', 'amemoryt', '7h3$tix');
$db->select('amemoryt_memorytree');
/*.string.*/ $dbname="amemoryt_memorytree";
?>
